home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
tsbat30.zip
/
SAFEDEL1.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-12-28
|
408b
|
14 lines
echo off
rem An auxiliary batch for safedel.bat safe deletion of files
rem This batchs asks for the confirmation, and deletes a single file
:_loop1
set _reply=
ask Delete %1 (y or n)? /d /u
if errorlevel==89 if not errorlevel==90 set _reply=yes
if errorlevel==78 if not errorlevel==79 set _reply=no
if "%_reply%"=="" echo
if "%_reply%"=="" goto _loop1
if "%_reply%"=="yes" del %1
set reply=